package model.locations;
import java.util.ArrayList;
import java.util.List;

import exceptions.ThingNotInArea;

import model.things.Thing;



public class StartingArea extends Area{
	public StartingArea(List<Thing> list,String description){
		thingsInArea = new ArrayList<Thing>();
		// You cannot add null to a list.
		if(list!=null) this.thingsInArea.addAll(list);
		if(description==null)
		this.description="you are on a path";
		this.description=description;
	}
	
	public String getDescription() {
		// TODO Auto-generated method stub
		return description;
	}

	public List<Thing> getThingsInVicinity() throws ThingNotInArea{
		if(thingsInArea.size()>0)
		return thingsInArea;
		throw new ThingNotInArea("nothing here");
	}

	@Override
	public String getType() {
		return "START";
	}

}
